// icon图标
import { House, Management, Promotion, UserFilled, User, Crop, EditPen, Edit, Lock, Document, SwitchButton } from '@element-plus/icons-vue'

// 菜单数据
export default[
  {
    name: '首页',
    url: '/index',
    icon: House,
    title: 'index',
    component: 'index'
  },
  {
    name: '文章分类',
    url: '/channel',
    icon: Management,
    title: 'channel',
    component: 'channel'
  },
  {
    name: '文章管理',
    url: '/manage',
    icon: Promotion,
    title: 'manage',
    component: 'manage'
  },
  {
    name: '基本资料',
    url: '/user',
    icon: UserFilled,
    title: 'user',
    component: 'user'
  },
  {
    name: '更换头像',
    url: '/avatar',
    icon: Crop,
    title: 'avatar',
    component: 'avatar'
  },
  {
    name: '重置密码',
    url: '/password',
    icon: Lock,
    title: 'password',
    component: 'password'
  },
  {
    name: '会员管理',
    url: '/member',
    icon: User,
    title: 'member',
    component: 'member',
    child: [
      {
        name: '创建会员',
        url: '/member/create',
        icon: Edit,
        title: 'create',
        component: 'create'
      },
      {
        name: '会员列表',
        url: '/member/list',
        icon: Document,
        title: 'list',
        component: 'list'
      }
    ]
  }
]